home *** CD-ROM | disk | FTP | other *** search
- * All rights reserved
- * Compile and analyze the current Turbo Pascal file
- * By Prof. Timo Salmi Sat 28-March-1992
- *
- * To compile these macros apply QMAC PASCAL.MAC PASCAL.QMA /A- /B
- *
- * To compile this command macro you need (also version 2.1 will do):
- * QMAC.EXE macro translator from /pc/editor/qmac215.zip
- * To use ALT-5 you need Borland's:
- * TPC.EXE Turbo Pascal compiler command line version
- * TURBO.TPL Turbo Pascal Library file at the same directory
- * To use ALT-6 you need in addition TurboPower Software's:
- * PSA.EXE Structure Analyst
- *
- * Before compiling the macro, edit the paths in the "Dos" command
- * lines to conform to where you have your files.
- *
- * To make these macros available you can e.g. first invoke the main menu
- * (usually F10) and select Macro: Read Macro: pascal.mac. Then you can
- * invoke the commands with ALT-5 and ALT-6, respectively.
- *
- * There is an annoying flaw in QEdit's CurrentFilename function. If
- * the path is long, the tails is truncated, and the macro won't work
-
- * ┌──────────────────────────────────────────────┐
- * │ Compile the current Turbo Pascal file, ALT-5 │
- * └──────────────────────────────────────────────┘
- @5 MacroBegin
- *
- * Turbo Pascal Version 5.0 Copyright (c) 1983,88 Borland International
- * Syntax: TPC [options] filename [options]
- * /Exxx EXE & TPU directory /Uxxx Unit directories
- *
- Dos 'c:\turbpasc\turbo50\tpc /ur:\;c:\pasohj\tpu50 /er:\ ' CurrentFilename
- Return
-
- * ┌─────────────────────────────────────────────────┐
- * │ Analyze the current Turbo Pascal program, ALT-6 │
- * └─────────────────────────────────────────────────┘
- @6 MacroBegin
- *
- * Structure Analyst. Copyright (c) TurboPower Software 1985,1988.
- * Usage: PSA [options] programname[.PAS] | Version 5.00.
- * /O file Output to specified file
- *
- * Do the analysis
- Dos 'c:\turbpasc\anal\psa /o r:\$analyze.rpt ' CurrentFilename
- Return
- *
- * See the results
- Return
- EditFile "r:\$analyze.rpt" Return
-